{{foreach from=$inventory item=group}}
<!-- group -->
<div id="group_{{$group.id}}" class="group" onclick="group_open({{$group.id}});" title="{{$group.name}}">
	{{$group.name}}<br />
	<span>{{$group.desc}}</span>
</div>

<!-- menu -->
<div dojoType="dijit.Menu"
	 targetNodeIds="group_{{$group.id}}"
	 style="display: none;">
    <div dojoType="dijit.MenuItem" iconClass="icon_copy" onClick="alert('Hello world');">Kopieren</div>
    <span dojoType="dijit.MenuSeparator"></span>
    <div dojoType="dijit.MenuItem"
	 	 iconClass="icon_delete"
	 	 onClick="group_delete({{$group.id}});"
	 	  {{if !$group.is_writeable}} disabled="disabled"{{/if}}>
   		Löschen
   	</div>
</div>
{{/foreach}}


